package com.lsk.netdisk.common.response.core;

import com.google.gson.Gson;

public class ResponseParser {
	private static final Gson gson = new Gson();

	public static <T> T parse(String resp, Class<T> type){
		Response response = gson.fromJson(resp, Response.class);
		return (T) response.getData();
	}
}
